home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / hypercrd / xcmds / frctns20.hqx / Fractions 2.0 / cards.xml < prev    next >
Text File  |  1992-10-24  |  10KB  |  290 lines

  1. card_2917.xml
  2. <?xml version="1.0" encoding="utf-8" ?>
  3. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  4. <card>
  5.     <id>2917</id>
  6.     <filler1>0</filler1>
  7.     <bitmap>BMAP_3828.pbm</bitmap>
  8.     <cantDelete> <false /> </cantDelete>
  9.     <showPict> <true /> </showPict>
  10.     <dontSearch> <false /> </dontSearch>
  11.     <owner>2766</owner>
  12.     <link rel="stylesheet" type="text/css" href="stylesheet_3147.css" />
  13.     <part>
  14.         <id>1</id>
  15.         <type>field</type>
  16.         <visible> <true /> </visible>
  17.         <dontWrap> <false /> </dontWrap>
  18.         <dontSearch> <false /> </dontSearch>
  19.         <sharedText> <false /> </sharedText>
  20.         <fixedLineHeight> <false /> </fixedLineHeight>
  21.         <autoTab> <false /> </autoTab>
  22.         <lockText> <true /> </lockText>
  23.         <rect>
  24.             <left>0</left>
  25.             <top>0</top>
  26.             <right>416</right>
  27.             <bottom>26</bottom>
  28.         </rect>
  29.         <style>rectangle</style>
  30.         <autoSelect> <false /> </autoSelect>
  31.         <showLines> <false /> </showLines>
  32.         <wideMargins> <false /> </wideMargins>
  33.         <multipleLines> <false /> </multipleLines>
  34.         <reservedFamily> 0 </reservedFamily>
  35.         <titleWidth>0</titleWidth>
  36.         <icon>0</icon>
  37.         <textAlign>center</textAlign>
  38.         <font>Times</font>
  39.         <textSize>24</textSize>
  40.         <textStyle>plain</textStyle>
  41.         <textHeight>32</textHeight>
  42.         <name></name>
  43.         <script></script>
  44.     </part>
  45.     <part>
  46.         <id>3</id>
  47.         <type>field</type>
  48.         <visible> <true /> </visible>
  49.         <dontWrap> <false /> </dontWrap>
  50.         <dontSearch> <false /> </dontSearch>
  51.         <sharedText> <false /> </sharedText>
  52.         <fixedLineHeight> <false /> </fixedLineHeight>
  53.         <autoTab> <false /> </autoTab>
  54.         <lockText> <true /> </lockText>
  55.         <rect>
  56.             <left>0</left>
  57.             <top>26</top>
  58.             <right>416</right>
  59.             <bottom>240</bottom>
  60.         </rect>
  61.         <style>scrolling</style>
  62.         <autoSelect> <false /> </autoSelect>
  63.         <showLines> <false /> </showLines>
  64.         <wideMargins> <false /> </wideMargins>
  65.         <multipleLines> <false /> </multipleLines>
  66.         <reservedFamily> 0 </reservedFamily>
  67.         <titleWidth>0</titleWidth>
  68.         <icon>0</icon>
  69.         <textAlign>left</textAlign>
  70.         <font>Times</font>
  71.         <textSize>12</textSize>
  72.         <textStyle>plain</textStyle>
  73.         <textHeight>16</textHeight>
  74.         <name></name>
  75.         <script></script>
  76.     </part>
  77.     <part>
  78.         <id>4</id>
  79.         <type>field</type>
  80.         <visible> <true /> </visible>
  81.         <dontWrap> <false /> </dontWrap>
  82.         <dontSearch> <false /> </dontSearch>
  83.         <sharedText> <false /> </sharedText>
  84.         <fixedLineHeight> <false /> </fixedLineHeight>
  85.         <autoTab> <false /> </autoTab>
  86.         <lockText> <false /> </lockText>
  87.         <rect>
  88.             <left>0</left>
  89.             <top>240</top>
  90.             <right>109</right>
  91.             <bottom>259</bottom>
  92.         </rect>
  93.         <style>rectangle</style>
  94.         <autoSelect> <false /> </autoSelect>
  95.         <showLines> <false /> </showLines>
  96.         <wideMargins> <false /> </wideMargins>
  97.         <multipleLines> <false /> </multipleLines>
  98.         <reservedFamily> 0 </reservedFamily>
  99.         <titleWidth>0</titleWidth>
  100.         <icon>0</icon>
  101.         <textAlign>left</textAlign>
  102.         <font>Times</font>
  103.         <textSize>14</textSize>
  104.         <textStyle>plain</textStyle>
  105.         <textHeight>18</textHeight>
  106.         <name>Fraction a</name>
  107.         <script></script>
  108.     </part>
  109.     <part>
  110.         <id>5</id>
  111.         <type>field</type>
  112.         <visible> <true /> </visible>
  113.         <dontWrap> <false /> </dontWrap>
  114.         <dontSearch> <false /> </dontSearch>
  115.         <sharedText> <false /> </sharedText>
  116.         <fixedLineHeight> <false /> </fixedLineHeight>
  117.         <autoTab> <false /> </autoTab>
  118.         <lockText> <false /> </lockText>
  119.         <rect>
  120.             <left>0</left>
  121.             <top>259</top>
  122.             <right>109</right>
  123.             <bottom>278</bottom>
  124.         </rect>
  125.         <style>rectangle</style>
  126.         <autoSelect> <false /> </autoSelect>
  127.         <showLines> <false /> </showLines>
  128.         <wideMargins> <false /> </wideMargins>
  129.         <multipleLines> <false /> </multipleLines>
  130.         <reservedFamily> 0 </reservedFamily>
  131.         <titleWidth>0</titleWidth>
  132.         <icon>0</icon>
  133.         <textAlign>left</textAlign>
  134.         <font>Times</font>
  135.         <textSize>14</textSize>
  136.         <textStyle>plain</textStyle>
  137.         <textHeight>18</textHeight>
  138.         <name>Fraction b</name>
  139.         <script></script>
  140.     </part>
  141.     <part>
  142.         <id>6</id>
  143.         <type>button</type>
  144.         <visible> <true /> </visible>
  145.         <reserved5> 0 </reserved5>
  146.         <reserved4> 0 </reserved4>
  147.         <reserved3> 0 </reserved3>
  148.         <reserved2> 0 </reserved2>
  149.         <reserved1> 0 </reserved1>
  150.         <enabled> <true /> </enabled>
  151.         <rect>
  152.             <left>141</left>
  153.             <top>240</top>
  154.             <right>241</right>
  155.             <bottom>262</bottom>
  156.         </rect>
  157.         <style>roundrect</style>
  158.         <showName> <true /> </showName>
  159.         <highlight> <false /> </highlight>
  160.         <autoHighlight> <false /> </autoHighlight>
  161.         <sharedHighlight> <true /> </sharedHighlight>
  162.         <family>0</family>
  163.         <titleWidth>0</titleWidth>
  164.         <icon>0</icon>
  165.         <textAlign>center</textAlign>
  166.         <font>Chicago</font>
  167.         <textSize>12</textSize>
  168.         <textStyle>plain</textStyle>
  169.         <name>Add</name>
  170.         <script>on mouseUpset the itemdelimiter to "/"put fractions(A,item 1 of cd fld 3,item 2 of cd fld 3, item 1 of cd fld 4, item 2 of cd fld 4)end mouseUp</script>
  171.     </part>
  172.     <part>
  173.         <id>7</id>
  174.         <type>button</type>
  175.         <visible> <true /> </visible>
  176.         <reserved5> 0 </reserved5>
  177.         <reserved4> 0 </reserved4>
  178.         <reserved3> 0 </reserved3>
  179.         <reserved2> 0 </reserved2>
  180.         <reserved1> 0 </reserved1>
  181.         <enabled> <true /> </enabled>
  182.         <rect>
  183.             <left>141</left>
  184.             <top>262</top>
  185.             <right>241</right>
  186.             <bottom>284</bottom>
  187.         </rect>
  188.         <style>roundrect</style>
  189.         <showName> <true /> </showName>
  190.         <highlight> <false /> </highlight>
  191.         <autoHighlight> <false /> </autoHighlight>
  192.         <sharedHighlight> <true /> </sharedHighlight>
  193.         <family>0</family>
  194.         <titleWidth>0</titleWidth>
  195.         <icon>0</icon>
  196.         <textAlign>center</textAlign>
  197.         <font>Chicago</font>
  198.         <textSize>12</textSize>
  199.         <textStyle>plain</textStyle>
  200.         <name>Substract</name>
  201.         <script>on mouseUpset the itemdelimiter to "/"put fractions("S",item 1 of cd fld 3,item 2 of cd fld 3, item 1 of cd fld 4, item 2 of cd fld 4)end mouseUp</script>
  202.     </part>
  203.     <part>
  204.         <id>8</id>
  205.         <type>button</type>
  206.         <visible> <true /> </visible>
  207.         <reserved5> 0 </reserved5>
  208.         <reserved4> 0 </reserved4>
  209.         <reserved3> 0 </reserved3>
  210.         <reserved2> 0 </reserved2>
  211.         <reserved1> 0 </reserved1>
  212.         <enabled> <true /> </enabled>
  213.         <rect>
  214.             <left>241</left>
  215.             <top>240</top>
  216.             <right>341</right>
  217.             <bottom>262</bottom>
  218.         </rect>
  219.         <style>roundrect</style>
  220.         <showName> <true /> </showName>
  221.         <highlight> <false /> </highlight>
  222.         <autoHighlight> <false /> </autoHighlight>
  223.         <sharedHighlight> <true /> </sharedHighlight>
  224.         <family>0</family>
  225.         <titleWidth>0</titleWidth>
  226.         <icon>0</icon>
  227.         <textAlign>center</textAlign>
  228.         <font>Chicago</font>
  229.         <textSize>12</textSize>
  230.         <textStyle>plain</textStyle>
  231.         <name>Multiply</name>
  232.         <script>on mouseUpset the itemdelimiter to "/"put Fractions("M",item 1 of cd fld 3,item 2 of cd fld 3, item 1 of cd fld 4, item 2 of cd fld 4)end mouseUp</script>
  233.     </part>
  234.     <part>
  235.         <id>9</id>
  236.         <type>button</type>
  237.         <visible> <true /> </visible>
  238.         <reserved5> 0 </reserved5>
  239.         <reserved4> 0 </reserved4>
  240.         <reserved3> 0 </reserved3>
  241.         <reserved2> 0 </reserved2>
  242.         <reserved1> 0 </reserved1>
  243.         <enabled> <true /> </enabled>
  244.         <rect>
  245.             <left>241</left>
  246.             <top>262</top>
  247.             <right>341</right>
  248.             <bottom>284</bottom>
  249.         </rect>
  250.         <style>roundrect</style>
  251.         <showName> <true /> </showName>
  252.         <highlight> <false /> </highlight>
  253.         <autoHighlight> <false /> </autoHighlight>
  254.         <sharedHighlight> <true /> </sharedHighlight>
  255.         <family>0</family>
  256.         <titleWidth>0</titleWidth>
  257.         <icon>0</icon>
  258.         <textAlign>center</textAlign>
  259.         <font>Chicago</font>
  260.         <textSize>12</textSize>
  261.         <textStyle>plain</textStyle>
  262.         <name>Divide</name>
  263.         <script>on mouseUpset the itemdelimiter to "/"put Fractions("D",item 1 of cd fld 3,item 2 of cd fld 3, item 1 of cd fld 4, item 2 of cd fld 4)end mouseUp</script>
  264.     </part>
  265.     <content>
  266.         <layer>card</layer>
  267.         <id>1</id>
  268.         <text>Fractions 2.0 by Olivier Cinquin</text>
  269.     </content>
  270.     <content>
  271.         <layer>card</layer>
  272.         <id>3</id>
  273.         <text><span class="style2">his stack contains one XFCN:- </span><span class="style3">Fractions</span><span class="style2"> (TypeOfOperation,a,b,c,d): it returns a fraction. A is the numerator of the first fraction, b its denominator, c the numerator of the second fraction, and d its denominator. TypeOfOperation can be:    - "</span><span class="style4">A</span><span class="style2">" if you want to add the two fractions   - "</span><span class="style4">S</span><span class="style2">" if you want to substract the two fractions   - "</span><span class="style4">M</span><span class="style2">" if you want to multiply the two fractions   - "</span><span class="style4">D</span><span class="style2">" if you want to divide the two fractions   - "</span><span class="style4">P</span><span class="style2">" if you want to get the least common multiple of two numbers (in this case, only the first three parametres are taken into account).Careful! Capital letters are taken into account! "</span><span class="style4">a</span><span class="style2">" won't work!The XFCN is able to simplify fractions as well (to use it for this, add your fraction to 0/1).NB: Fractions obviously won't work with non-integer numbers!Version 1.1 takes minus signs into account and behaves properly when you pass 0 as a denominator.Version 2.0 is much more powerful than previous ones; it can handle prime numbers up to 997 (in versions 1 and 1.1, this was limited to 11; you couldn't do operations with numbers which could not be decomposed into the first 5 prime numbers).----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------This program is freeware: you may (and I'd like you to do so!) distribute it to anyone, as long as you do so for free. I'd only like you to send me a post-card if you decide to use it. However, if you use Fractions in any commercial or shareware stack, </span><span class="style4">you must first contact me to get a license</span><span class="style2">. My mail address is:Olivier Cinquin16, rue de Strasbourg38 000 GRENOBLEFRANCE.If you have any comments or suggestions please send them to me at the above address or email me at  " ocinquin@timb.imag.fr " on the Internet.</span></text>
  274.     </content>
  275.     <content>
  276.         <layer>card</layer>
  277.         <id>4</id>
  278.         <text>66/9</text>
  279.     </content>
  280.     <content>
  281.         <layer>card</layer>
  282.         <id>5</id>
  283.         <text>13/3</text>
  284.     </content>
  285.     <name></name>
  286.     <script></script>
  287. </card>
  288.  
  289.  
  290.